package com.atguigu.gmall.pms.feign.fallback;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.pms.feign.GmallSmsClient;
import com.atguigu.gmall.sms.api.GmallSmsApi;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import com.atguigu.gmall.sms.vo.SkuSaleInfoVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GmallSmsFallback implements GmallSmsClient {
    @Override
    public ResponseVo<List<ItemSaleVo>> queryItemSalesBySkuId(Long skuId) {
        return ResponseVo.fail("远程访问失败");
    }

    @Override
    public ResponseVo<Object> saveSkuSaleInfo(SkuSaleInfoVo skuSaleInfoVo) {
        return ResponseVo.fail("远程访问失败");
    }
}
